﻿using MediatR;
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using S.Transfer.Domain.Model;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using S.Transfer.API.Dto;

namespace S.Transfer.API.Application.Command.TransferCommand
{
    public class TransferCreatelCommond : IRequest<bool>
    {
        /// <summary>
        /// 电子耳标
        /// </summary>
        public string EarTag { get; set; }
        /// <summary>
        /// 转舍日期
        /// </summary>
        public DateTime? SurrenderDate { get; set; }
        /// <summary>
        /// 转舍类型
        /// </summary>
        public int RoundType { get; set; }
        /// <summary>
        /// 转出栋舍
        /// </summary>
        public int TurnOutBuild { get; set; }

        /// <summary>
        /// 转出栏位
        /// </summary>
        public int TurnOutHuts { get; set; }
        /// <summary>
        /// 转出栋舍主键
        /// </summary>
        public int TurnOuBuildingManagementId { get; set; }
        /// <summary>
        /// 转出栏位主键
        /// </summary>
        public int TurnOuColumnManagementId { get; set; }
        /// <summary>
        /// 转入栋舍
        /// </summary>
        public int ShiftToBuild { get; set; }
        /// <summary>
        /// 转入栏位
        /// </summary>
        public int ShiftToHuts { get; set; }
        /// <summary>
        /// 转入栋舍主键
        /// </summary>
        public int ShiftToBuildingManagementId { get; set; }
        /// <summary>
        /// 转入栏位主键
        /// </summary>
        public int ShiftToColumnManagementId { get; set; }
        /// <summary>
        /// 品种
        /// </summary>
        public int? Variety { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 单据号
        /// </summary>
        public long DocumentNumbe { get; set; }
        /// <summary>
        /// 羊只类型
        /// </summary>
        public string? Type { get; set; }
    }
    public class CreateTranFerCommand : IRequest<int>
    {
        public List<SheepRescission> sheep { get; set; }
    }
    /// <summary>                                                                                                                                            
    /// 批量添加
    /// </summary>
    public class MyCreateTranFerCommand : IRequest<int>
    {
        public List<SheepRescission> sheep { get; set; }
    }
}
